package com.future.mayi.adapter;

import android.content.Context;

import com.future.mayi.R;
import com.future.mayi.model.CateModel;

import java.util.List;

/**
 * Created by 周大虎 on 2017/5/25.
 */

public class CateAdapter extends CommonAdapter<CateModel> {
    public CateAdapter(Context context, int textViewResourceId, List<CateModel> objects) {
        super(context, textViewResourceId, objects);
    }

    @Override
    public void convert(ViewHolder helper, CateModel item) {



        helper.setWebImage(R.id.iv_icon, item.getCate_img());
        helper.setText(R.id.tv_name, item.getCate_name());
    }


}
